<!DOCTYPE HTML>
<html lang="en" >
    <!-- Start book 个人笔记 -->
    <head>
        <!-- head:start -->
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <title>jquery | 个人笔记</title>
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <meta name="description" content="">
        <meta name="generator" content="GitBook 2.6.7">
        
        
        <meta name="HandheldFriendly" content="true"/>
        <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="apple-mobile-web-app-status-bar-style" content="black">
        <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../../gitbook/images/apple-touch-icon-precomposed-152.png">
        <link rel="shortcut icon" href="../../gitbook/images/favicon.ico" type="image/x-icon">
        
    <link rel="stylesheet" href="../../gitbook/style.css">
    
        
        <link rel="stylesheet" href="../../gitbook/plugins/gitbook-plugin-toggle-chapters/toggle.css">
        
    
        
        <link rel="stylesheet" href="../../gitbook/plugins/gitbook-plugin-highlight/website.css">
        
    
        
        <link rel="stylesheet" href="../../gitbook/plugins/gitbook-plugin-search/search.css">
        
    
        
        <link rel="stylesheet" href="../../gitbook/plugins/gitbook-plugin-fontsettings/website.css">
        
    
    

        
    
    
    <link rel="next" href="../../md/book/book.html" />
    
    
    <link rel="prev" href="../../md/javascript/前端框架汇总.html" />
    

        <!-- head:end -->
    </head>
    <body>
        <!-- body:start -->
        
    <div class="book"
        data-level="4"
        data-chapter-title="jquery"
        data-filepath="md/jquery/jquery.md"
        data-basepath="../.."
        data-revision="Thu Feb 14 2019 20:54:34 GMT+0800 (中国标准时间)"
        data-innerlanguage="">
    

<div class="book-summary">
    <nav role="navigation">
        <ul class="summary">
            
            
            
            

            

            
    
        <li class="chapter " data-level="0" data-path="index.html">
            
                
                    <a href="../../index.html">
                
                        <i class="fa fa-check"></i>
                        
                        开始界面
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1" data-path="md/html/jianjie.html">
            
                
                    <a href="../../md/html/jianjie.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.</b>
                        
                        html
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1" data-path="md/html/20170719.html">
            
                
                    <a href="../../md/html/20170719.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.</b>
                        
                        head
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="md/html/2017720.html">
            
                
                    <a href="../../md/html/2017720.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.2.</b>
                        
                        常用标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="md/html/sy.html">
            
                
                    <a href="../../md/html/sy.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.3.</b>
                        
                        音频与视频
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="md/html/ckw.html">
            
                
                    <a href="../../md/html/ckw.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.4.</b>
                        
                        实体字符与锚点
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="md/html/table.html">
            
                
                    <a href="../../md/html/table.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.5.</b>
                        
                        table表格
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="md/html/input.html">
            
                
                    <a href="../../md/html/input.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.6.</b>
                        
                        input标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="md/html/form.html">
            
                
                    <a href="../../md/html/form.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.7.</b>
                        
                        form表单
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="md/html/buju.html">
            
                
                    <a href="../../md/html/buju.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.8.</b>
                        
                        网页布局
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2" data-path="md/css/css.html">
            
                
                    <a href="../../md/css/css.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.</b>
                        
                        CSS
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.1" data-path="md/css/20170724.html">
            
                
                    <a href="../../md/css/20170724.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.</b>
                        
                        选择器
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.1.1" data-path="md/css/通配选择器.html">
            
                
                    <a href="../../md/css/通配选择器.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.1.</b>
                        
                        通配选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.2" data-path="md/css/元素选择器.html">
            
                
                    <a href="../../md/css/元素选择器.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.2.</b>
                        
                        元素选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.3" data-path="md/css/群组选择器.html">
            
                
                    <a href="../../md/css/群组选择器.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.3.</b>
                        
                        群组选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.4" data-path="md/css/关系选择器.html">
            
                
                    <a href="../../md/css/关系选择器.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.4.</b>
                        
                        关系选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.5" data-path="md/css/id和class选择器.html">
            
                
                    <a href="../../md/css/id和class选择器.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.5.</b>
                        
                        id和class选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.6" data-path="md/css/weilei.html">
            
                
                    <a href="../../md/css/weilei.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.6.</b>
                        
                        伪类选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.7" data-path="md/css/属性选择器.html">
            
                
                    <a href="../../md/css/属性选择器.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.7.</b>
                        
                        属性选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.8" data-path="md/css/伪对象选择器.html">
            
                
                    <a href="../../md/css/伪对象选择器.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.8.</b>
                        
                        伪对象选择器
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.2" data-path="md/css/字体.html">
            
                
                    <a href="../../md/css/字体.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.</b>
                        
                        字体库的使用
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.3" data-path="md/css/边框.html">
            
                
                    <a href="../../md/css/边框.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.</b>
                        
                        border边框和background背景
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.4" data-path="md/css/浮动.html">
            
                
                    <a href="../../md/css/浮动.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.4.</b>
                        
                        浮动
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.5" data-path="md/css/块级和行内.html">
            
                
                    <a href="../../md/css/块级和行内.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.5.</b>
                        
                        块级和行内元素
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.6" data-path="md/css/盒子.html">
            
                
                    <a href="../../md/css/盒子.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.6.</b>
                        
                        盒子模型和三角形
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.7" data-path="md/css/聊天气泡.html">
            
                
                    <a href="../../md/css/聊天气泡.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.7.</b>
                        
                        聊天气泡
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.8" data-path="md/css/段落控制.html">
            
                
                    <a href="../../md/css/段落控制.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.8.</b>
                        
                        文字溢出处理
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.9" data-path="md/css/固定定位.html">
            
                
                    <a href="../../md/css/固定定位.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.9.</b>
                        
                        定位
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.10" data-path="md/css/sacss.html">
            
                
                    <a href="../../md/css/sacss.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.10.</b>
                        
                        sacss和码云git的使用
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.10.1" data-path="md/css/sacss的安装.html">
            
                
                    <a href="../../md/css/sacss的安装.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.10.1.</b>
                        
                        sacss的安装
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.10.2" data-path="md/css/sacss使用.html">
            
                
                    <a href="../../md/css/sacss使用.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.10.2.</b>
                        
                        sacss的使用
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.10.3" data-path="md/css/码云.html">
            
                
                    <a href="../../md/css/码云.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.10.3.</b>
                        
                        码云
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.11" data-path="md/css/变换和过渡.html">
            
                
                    <a href="../../md/css/变换和过渡.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.11.</b>
                        
                        transform变换和transition过渡
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.12" data-path="md/css/swiper的使用.html">
            
                
                    <a href="../../md/css/swiper的使用.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.12.</b>
                        
                        swiper的使用
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.13" data-path="md/css/viewport视口.html">
            
                
                    <a href="../../md/css/viewport视口.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.13.</b>
                        
                        viewport视口
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.14" data-path="md/css/列式布局.html">
            
                
                    <a href="../../md/css/列式布局.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.14.</b>
                        
                        列式布局
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.15" data-path="md/css/媒体查询.html">
            
                
                    <a href="../../md/css/媒体查询.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.15.</b>
                        
                        媒体查询
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.16" data-path="md/css/flex弹性盒子.html">
            
                
                    <a href="../../md/css/flex弹性盒子.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.16.</b>
                        
                        flex弹性盒子
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="3" data-path="md/javascript/javascript.html">
            
                
                    <a href="../../md/javascript/javascript.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.</b>
                        
                        javascript
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="3.1" data-path="md/javascript/类型.html">
            
                
                    <a href="../../md/javascript/类型.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.1.</b>
                        
                        类型与语法
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.2" data-path="md/javascript/定时器.html">
            
                
                    <a href="../../md/javascript/定时器.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.2.</b>
                        
                        定时器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.3" data-path="md/javascript/Date.html">
            
                
                    <a href="../../md/javascript/Date.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.3.</b>
                        
                        Date时间、日期
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.4" data-path="md/javascript/document的使用.html">
            
                
                    <a href="../../md/javascript/document的使用.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.4.</b>
                        
                        DOM的增、删、改、查
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.5" data-path="md/javascript/数组.html">
            
                
                    <a href="../../md/javascript/数组.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.5.</b>
                        
                        数组
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.6" data-path="md/javascript/for循环.html">
            
                
                    <a href="../../md/javascript/for循环.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.6.</b>
                        
                        for循环
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.7" data-path="md/javascript/Math对象.html">
            
                
                    <a href="../../md/javascript/Math对象.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.7.</b>
                        
                        Math对象
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.8" data-path="md/javascript/事件.html">
            
                
                    <a href="../../md/javascript/事件.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.8.</b>
                        
                        事件
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="3.8.1" data-path="md/javascript/事件监听器.html">
            
                
                    <a href="../../md/javascript/事件监听器.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.8.1.</b>
                        
                        事件监听器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.8.2" data-path="md/javascript/滚动条事件.html">
            
                
                    <a href="../../md/javascript/滚动条事件.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.8.2.</b>
                        
                        滚动条事件
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.8.3" data-path="md/javascript/事件代理.html">
            
                
                    <a href="../../md/javascript/事件代理.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.8.3.</b>
                        
                        事件代理
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.8.4" data-path="md/javascript/事件派发.html">
            
                
                    <a href="../../md/javascript/事件派发.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.8.4.</b>
                        
                        事件派发
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.8.5" data-path="md/javascript/鼠标跟随事件.html">
            
                
                    <a href="../../md/javascript/鼠标跟随事件.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.8.5.</b>
                        
                        鼠标跟随事件
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.8.6" data-path="md/javascript/鼠标事件.html">
            
                
                    <a href="../../md/javascript/鼠标事件.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.8.6.</b>
                        
                        鼠标、键盘事件
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="3.9" data-path="md/javascript/对象.html">
            
                
                    <a href="../../md/javascript/对象.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.9.</b>
                        
                        对象
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.10" data-path="md/javascript/轮播图.html">
            
                
                    <a href="../../md/javascript/轮播图.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.10.</b>
                        
                        轮播图
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.11" data-path="md/javascript/高德地图的使用.html">
            
                
                    <a href="../../md/javascript/高德地图的使用.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.11.</b>
                        
                        高德地图的使用
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.12" data-path="md/javascript/预加载.html">
            
                
                    <a href="../../md/javascript/预加载.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.12.</b>
                        
                        预加载
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.13" data-path="md/javascript/vue框架.html">
            
                
                    <a href="../../md/javascript/vue框架.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.13.</b>
                        
                        vue框架
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.14" data-path="md/javascript/http缓存.html">
            
                
                    <a href="../../md/javascript/http缓存.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.14.</b>
                        
                        http缓存
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.15" data-path="md/javascript/闭包.html">
            
                
                    <a href="../../md/javascript/闭包.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.15.</b>
                        
                        闭包
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.16" data-path="md/javascript/Ajax.html">
            
                
                    <a href="../../md/javascript/Ajax.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.16.</b>
                        
                        Ajax
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.17" data-path="md/javascript/Ajax数据请求.html">
            
                
                    <a href="../../md/javascript/Ajax数据请求.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.17.</b>
                        
                        Ajax数据请求
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.18" data-path="md/javascript/打包工具.html">
            
                
                    <a href="../../md/javascript/打包工具.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.18.</b>
                        
                        打包工具
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.19" data-path="md/javascript/前端框架汇总.html">
            
                
                    <a href="../../md/javascript/前端框架汇总.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.19.</b>
                        
                        前端框架汇总
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter active" data-level="4" data-path="md/jquery/jquery.html">
            
                
                    <a href="../../md/jquery/jquery.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.</b>
                        
                        jquery
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="5" data-path="md/book/book.html">
            
                
                    <a href="../../md/book/book.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>5.</b>
                        
                        弹性盒子
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="6" data-path="md/tool/前端工具.html">
            
                
                    <a href="../../md/tool/前端工具.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>6.</b>
                        
                        前端工具
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="6.1" data-path="md/tool/git的安装.html">
            
                
                    <a href="../../md/tool/git的安装.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>6.1.</b>
                        
                        git的安装
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="7" data-path="md/opus/item.html">
            
                
                    <a href="../../md/opus/item.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>7.</b>
                        
                        项目
                    </a>
            
            
        </li>
    


            
            <li class="divider"></li>
            <li>
                <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
                    Published with GitBook
                </a>
            </li>
            
        </ul>
    </nav>
</div>

    <div class="book-body">
        <div class="body-inner">
            <div class="book-header" role="navigation">
    <!-- Actions Left -->
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="../../" >个人笔记</a>
    </h1>
</div>

            <div class="page-wrapper" tabindex="-1" role="main">
                <div class="page-inner">
                
                
                    <section class="normal" id="section-">
                    
                        <h2 id="1&#x4E8B;&#x4EF6;">1.&#x4E8B;&#x4EF6;</h2>
<p><code>click()</code> &#x65B9;&#x6CD5;&#x662F;&#x5F53;&#x6309;&#x94AE;&#x70B9;&#x51FB;&#x4E8B;&#x4EF6;&#x88AB;&#x89E6;&#x53D1;&#x65F6;&#x4F1A;&#x8C03;&#x7528;&#x4E00;&#x4E2A;&#x51FD;&#x6570;&#x3002;<br>
&#x5F53;&#x53CC;&#x51FB;&#x5143;&#x7D20;&#x65F6;&#xFF0C;&#x4F1A;&#x53D1;&#x751F; <code>dblclick</code>&#x4E8B;&#x4EF6;&#x3002;<br>
&#x5F53;&#x9F20;&#x6807;&#x6307;&#x9488;&#x7A7F;&#x8FC7;&#x5143;&#x7D20;&#x65F6;&#xFF0C;&#x4F1A;&#x53D1;&#x751F; <code>mouseenter</code>&#x4E8B;&#x4EF6;&#x3002;<br>
&#x5F53;&#x9F20;&#x6807;&#x6307;&#x9488;&#x79BB;&#x5F00;&#x5143;&#x7D20;&#x65F6;&#xFF0C;&#x4F1A;&#x53D1;&#x751F; <code>mouseleave</code>&#x4E8B;&#x4EF6;&#x3002;<br>
&#x5F53;&#x9F20;&#x6807;&#x6307;&#x9488;&#x79FB;&#x52A8;&#x5230;&#x5143;&#x7D20;&#x4E0A;&#x65B9;&#xFF0C;&#x5E76;&#x6309;&#x4E0B;&#x9F20;&#x6807;&#x6309;&#x952E;&#x65F6;&#xFF0C;&#x4F1A;&#x53D1;&#x751F; <code>mousedown</code> &#x4E8B;&#x4EF6;&#x3002;<br>
&#x5F53;&#x5728;&#x5143;&#x7D20;&#x4E0A;&#x677E;&#x5F00;&#x9F20;&#x6807;&#x6309;&#x94AE;&#x65F6;&#xFF0C;&#x4F1A;&#x53D1;&#x751F; <code>mouseup</code> &#x4E8B;&#x4EF6;&#x3002;<br>
<code>hover()</code>&#x65B9;&#x6CD5;&#x7528;&#x4E8E;&#x6A21;&#x62DF;&#x5149;&#x6807;&#x60AC;&#x505C;&#x4E8B;&#x4EF6;&#x3002;<br></p>
<ul>
<li>&#x5F53;&#x5143;&#x7D20;&#x83B7;&#x5F97;&#x7126;&#x70B9;&#x65F6;&#xFF0C;&#x53D1;&#x751F; focus &#x4E8B;&#x4EF6;&#x3002;</li>
<li>&#x5F53;&#x5143;&#x7D20;&#x5931;&#x53BB;&#x7126;&#x70B9;&#x65F6;&#xFF0C;&#x53D1;&#x751F; blur &#x4E8B;&#x4EF6;&#x3002;</li>
</ul>
<h4 id="&#x533A;&#x522B;&#xFF1A;">&#x533A;&#x522B;&#xFF1A;</h4>
<p><code>mouseover</code>&#x4E0E;<code>mouseenter</code><br></p>
<ul>
<li>&#x4E0D;&#x8BBA;&#x9F20;&#x6807;&#x6307;&#x9488;&#x7A7F;&#x8FC7;&#x88AB;&#x9009;&#x5143;&#x7D20;&#x6216;&#x5176;&#x5B50;&#x5143;&#x7D20;&#xFF0C;&#x90FD;&#x4F1A;&#x89E6;&#x53D1; <code>mouseover</code> &#x4E8B;&#x4EF6;&#x3002;</li>
<li>&#x53EA;&#x6709;&#x5728;&#x9F20;&#x6807;&#x6307;&#x9488;&#x7A7F;&#x8FC7;&#x88AB;&#x9009;&#x5143;&#x7D20;&#x65F6;&#xFF0C;&#x624D;&#x4F1A;&#x89E6;&#x53D1; <code>mouseenter</code> &#x4E8B;&#x4EF6;&#x3002;</li>
</ul>
<p><code>mouseout</code>&#x4E0E;<code>mouseleave</code><br></p>
<ul>
<li>&#x4E0D;&#x8BBA;&#x9F20;&#x6807;&#x6307;&#x9488;&#x79BB;&#x5F00;&#x88AB;&#x9009;&#x5143;&#x7D20;&#x8FD8;&#x662F;&#x4EFB;&#x4F55;&#x5B50;&#x5143;&#x7D20;&#xFF0C;&#x90FD;&#x4F1A;&#x89E6;&#x53D1; <code>mouseout</code> &#x4E8B;&#x4EF6;&#x3002;</li>
<li>&#x53EA;&#x6709;&#x5728;&#x9F20;&#x6807;&#x6307;&#x9488;&#x79BB;&#x5F00;&#x88AB;&#x9009;&#x5143;&#x7D20;&#x65F6;&#xFF0C;&#x624D;&#x4F1A;&#x89E6;&#x53D1;<code>mouseleave</code>&#x4E8B;&#x4EF6;&#x3002;<h2 id="2&#x6548;&#x679C;">2.&#x6548;&#x679C;</h2>
<h3 id="11&#x663E;&#x793A;&#x3001;&#x9690;&#x85CF;&#x6548;&#x679C;">1.1&#x663E;&#x793A;&#x3001;&#x9690;&#x85CF;&#x6548;&#x679C;</h3>
&#x4F7F;&#x7528; <code>hide()</code>&#x548C;<code>show()</code>&#x65B9;&#x6CD5;&#x6765;&#x9690;&#x85CF;&#x548C;&#x663E;&#x793A; HTML &#x5143;&#x7D20;&#x3002;<br>
&#x4F7F;&#x7528; <code>toggle()</code>&#x65B9;&#x6CD5;&#x6765;&#x5207;&#x6362; <code>hide()</code>&#x548C;<code>show()</code>&#x65B9;&#x6CD5;&#x3002;<br><h3 id="12&#x6DE1;&#x5165;&#x3001;&#x6DE1;&#x51FA;&#x6548;&#x679C;">1.2&#x6DE1;&#x5165;&#x3001;&#x6DE1;&#x51FA;&#x6548;&#x679C;</h3>
<code>fadeIn()</code>&#x7528;&#x4E8E;&#x6DE1;&#x5165;&#x5DF2;&#x9690;&#x85CF;&#x7684;&#x5143;&#x7D20;&#x3002;<br>
<code>fadeOut()</code>&#x65B9;&#x6CD5;&#x7528;&#x4E8E;&#x6DE1;&#x51FA;&#x53EF;&#x89C1;&#x5143;&#x7D20;&#x3002;<br>
<code>fadeToggle()</code> &#x65B9;&#x6CD5;&#x53EF;&#x4EE5;&#x5728; <code>fadeIn()</code> &#x4E0E; <code>fadeOut()</code> &#x65B9;&#x6CD5;&#x4E4B;&#x95F4;&#x8FDB;&#x884C;&#x5207;&#x6362;&#x3002;<br>
<code>fadeTo()</code> &#x65B9;&#x6CD5;&#x5141;&#x8BB8;&#x6E10;&#x53D8;&#x4E3A;&#x7ED9;&#x5B9A;&#x7684;&#x4E0D;&#x900F;&#x660E;&#x5EA6;&#xFF08;&#x503C;&#x4ECB;&#x4E8E; 0 &#x4E0E; 1 &#x4E4B;&#x95F4;&#xFF09;&#x3002;<br><h3 id="13&#x6ED1;&#x52A8;&#x6548;&#x679C;">1.3&#x6ED1;&#x52A8;&#x6548;&#x679C;</h3>
<code>slideDown()</code> &#x65B9;&#x6CD5;&#x7528;&#x4E8E;&#x5411;&#x4E0B;&#x6ED1;&#x52A8;&#x5143;&#x7D20;&#x3002;<br>
<code>slideUp()</code>&#x65B9;&#x6CD5;&#x7528;&#x4E8E;&#x5411;&#x4E0A;&#x6ED1;&#x52A8;&#x5143;&#x7D20;&#x3002;<br>
<code>slideToggle()</code> &#x65B9;&#x6CD5;&#x53EF;&#x4EE5;&#x5728; slideDown() &#x4E0E; slideUp() &#x65B9;&#x6CD5;&#x4E4B;&#x95F4;&#x8FDB;&#x884C;&#x5207;&#x6362;&#x3002;<br><h3 id="14&#x52A8;&#x753B;&#x6548;&#x679C;">1.4&#x52A8;&#x753B;&#x6548;&#x679C;</h3>
<code>animate()</code> &#x65B9;&#x6CD5;&#x7528;&#x4E8E;&#x521B;&#x5EFA;&#x81EA;&#x5B9A;&#x4E49;&#x52A8;&#x753B;&#x3002;<br>
&#x8BED;&#x6CD5;&#xFF1A;</li>
<li><code>$(selector).animate({params},speed,callback);</code><br></li>
<li>&#x5FC5;&#x9700;&#x7684; params &#x53C2;&#x6570;&#x5B9A;&#x4E49;&#x5F62;&#x6210;&#x52A8;&#x753B;&#x7684; CSS &#x5C5E;&#x6027;&#x3002;<br></li>
<li>&#x53EF;&#x9009;&#x7684; speed &#x53C2;&#x6570;&#x89C4;&#x5B9A;&#x6548;&#x679C;&#x7684;&#x65F6;&#x957F;&#x3002;&#x5B83;&#x53EF;&#x4EE5;&#x53D6;&#x4EE5;&#x4E0B;&#x503C;&#xFF1A;&quot;slow&quot;&#x3001;&quot;fast&quot; &#x6216;&#x6BEB;&#x79D2;&#x3002;<br></li>
<li>&#x53EF;&#x9009;&#x7684; callback &#x53C2;&#x6570;&#x662F;&#x52A8;&#x753B;&#x5B8C;&#x6210;&#x540E;&#x6240;&#x6267;&#x884C;&#x7684;&#x51FD;&#x6570;&#x540D;&#x79F0;&#x3002;<h2 id="3&#x6355;&#x83B7;">3.&#x6355;&#x83B7;</h2>
text() - &#x8BBE;&#x7F6E;&#x6216;&#x8FD4;&#x56DE;&#x6240;&#x9009;&#x5143;&#x7D20;&#x7684;&#x6587;&#x672C;&#x5185;&#x5BB9;<br>
html() - &#x8BBE;&#x7F6E;&#x6216;&#x8FD4;&#x56DE;&#x6240;&#x9009;&#x5143;&#x7D20;&#x7684;&#x5185;&#x5BB9;&#xFF08;&#x5305;&#x62EC; HTML &#x6807;&#x8BB0;&#xFF09;<br>
val() - &#x8BBE;&#x7F6E;&#x6216;&#x8FD4;&#x56DE;&#x8868;&#x5355;&#x5B57;&#x6BB5;&#x7684;&#x503C;<br><h4 id="&#x8BBE;&#x7F6E;&#x503C;&#xFF1A;">&#x8BBE;&#x7F6E;&#x503C;&#xFF1A;</h4>
<pre><code>$(&quot;#btn1&quot;).click(function(){
  $(&quot;#test1&quot;).text(&quot;Helloworld!&quot;);
}); 
$(&quot;#btn2&quot;).click(function(){
  $(&quot;#test2&quot;).html(&quot;&lt;b&gt;Helloworld!&lt;/b&gt;&quot;);
}); 
$(&quot;#btn3&quot;).click(function(){
   $(&quot;#test3&quot;).val(&quot;RUNOOB&quot;); 
});
</code></pre>text()&#x3001;html() &#x4EE5;&#x53CA; val()&#xFF0C;&#x540C;&#x6837;&#x62E5;&#x6709;&#x56DE;&#x8C03;&#x51FD;&#x6570;&#x3002;&#x56DE;&#x8C03;&#x51FD;&#x6570;&#x6709;&#x4E24;&#x4E2A;&#x53C2;&#x6570;&#xFF1A;&#x88AB;&#x9009;&#x5143;&#x7D20;&#x5217;&#x8868;&#x4E2D;&#x5F53;&#x524D;&#x5143;&#x7D20;&#x7684;&#x4E0B;&#x6807;&#xFF0C;&#x4EE5;&#x53CA;&#x539F;&#x59CB;&#xFF08;&#x65E7;&#x7684;&#xFF09;&#x503C;&#x3002;&#x7136;&#x540E;&#x4EE5;&#x51FD;&#x6570;&#x65B0;&#x503C;&#x8FD4;&#x56DE;&#x60A8;&#x5E0C;&#x671B;&#x4F7F;&#x7528;&#x7684;&#x5B57;&#x7B26;&#x4E32;&#x3002;<br><pre><code>$(&quot;#btn1&quot;).click(function(){ 
  $(&quot;#test1&quot;).text(function(i,origText){ 
      return &quot;&#x65E7;&#x6587;&#x672C;: &quot; + origText + &quot; &#x65B0;&#x6587;&#x672C;: Hello world! (index: &quot; + i + &quot;)&quot;; 
  }); 
});
</code></pre>attr() &#x65B9;&#x6CD5;&#x4E5F;&#x7528;&#x4E8E;&#x8BBE;&#x7F6E;/&#x6539;&#x53D8;&#x5C5E;&#x6027;&#x503C;&#x3002;<pre><code>```
$(&quot;button&quot;).click(function(){ 
  $(&quot;#runoob&quot;).attr(&quot;href&quot;,&quot;http://www.runoob.com/jquery&quot;); 
});
</code></pre>attr() &#x65B9;&#x6CD5;&#x4E5F;&#x5141;&#x8BB8;&#x60A8;&#x540C;&#x65F6;&#x8BBE;&#x7F6E;&#x591A;&#x4E2A;&#x5C5E;&#x6027;&#x3002;<pre><code>$(&quot;button&quot;).click(function(){
  $(&quot;#runoob&quot;).attr({
      &quot;href&quot; : &quot;http://www.runoob.com/jquery&quot;, 
      &quot;title&quot; : &quot;jQuery &#x6559;&#x7A0B;&quot; 
  }); 
});
</code></pre><h2 id="4&#x6DFB;&#x52A0;&#x5143;&#x7D20;">4.&#x6DFB;&#x52A0;&#x5143;&#x7D20;</h2>
append() &#x65B9;&#x6CD5;&#x5728;&#x88AB;&#x9009;&#x5143;&#x7D20;&#x7684;&#x7ED3;&#x5C3E;&#x63D2;&#x5165;&#x5185;&#x5BB9;&#x3002;<br>
prepend() &#x65B9;&#x6CD5;&#x5728;&#x88AB;&#x9009;&#x5143;&#x7D20;&#x7684;&#x5F00;&#x5934;&#x63D2;&#x5165;&#x5185;&#x5BB9;&#x3002;<br>
after() &#x65B9;&#x6CD5;&#x5728;&#x88AB;&#x9009;&#x5143;&#x7D20;&#x4E4B;&#x540E;&#x63D2;&#x5165;&#x5185;&#x5BB9;&#x3002;<br>
before() &#x65B9;&#x6CD5;&#x5728;&#x88AB;&#x9009;&#x5143;&#x7D20;&#x4E4B;&#x524D;&#x63D2;&#x5165;&#x5185;&#x5BB9;&#x3002;<br><h2 id="5&#x5220;&#x9664;&#x5143;&#x7D20;">5.&#x5220;&#x9664;&#x5143;&#x7D20;</h2>
remove() &#x65B9;&#x6CD5;&#x5220;&#x9664;&#x88AB;&#x9009;&#x5143;&#x7D20;&#x53CA;&#x5176;&#x5B50;&#x5143;&#x7D20;&#x3002;<br>
empty() &#x65B9;&#x6CD5;&#x5220;&#x9664;&#x88AB;&#x9009;&#x5143;&#x7D20;&#x7684;&#x5B50;&#x5143;&#x7D20;&#x3002;<br>
remove() &#x65B9;&#x6CD5;&#x4E5F;&#x53EF;&#x63A5;&#x53D7;&#x4E00;&#x4E2A;&#x53C2;&#x6570;&#xFF0C;&#x5141;&#x8BB8;&#x60A8;&#x5BF9;&#x88AB;&#x5220;&#x5143;&#x7D20;&#x8FDB;&#x884C;&#x8FC7;&#x6EE4;&#x3002;<br>
<code>$(&quot;p&quot;).remove(&quot;.italic&quot;);</code><h2 id="6css&#x7C7B;">6.css&#x7C7B;</h2>
addClass() &#x6DFB;&#x52A0;class&#x7C7B;&#x3002;<br>
removeClass()&#x5220;&#x9664;class&#x7C7B;&#x3002;<br>
toggleClass() &#x65B9;&#x6CD5;&#x5BF9;&#x88AB;&#x9009;&#x5143;&#x7D20;&#x8FDB;&#x884C;&#x6DFB;&#x52A0;/&#x5220;&#x9664;&#x7C7B;&#x7684;&#x5207;&#x6362;&#x64CD;&#x4F5C;&#x3002;<br>
css() &#x65B9;&#x6CD5;&#x8BBE;&#x7F6E;&#x6216;&#x8FD4;&#x56DE;&#x88AB;&#x9009;&#x5143;&#x7D20;&#x7684;&#x4E00;&#x4E2A;&#x6216;&#x591A;&#x4E2A;&#x6837;&#x5F0F;&#x5C5E;&#x6027;&#x3002;<br>
<code>$(&quot;p&quot;).css({&quot;background-color&quot;:&quot;yellow&quot;,&quot;font-size&quot;:&quot;200%&quot;});</code><h2 id="7&#x904D;&#x5386;">7.&#x904D;&#x5386;</h2>
parent() &#x65B9;&#x6CD5;&#x8FD4;&#x56DE;&#x88AB;&#x9009;&#x5143;&#x7D20;&#x7684;&#x76F4;&#x63A5;&#x7236;&#x5143;&#x7D20;&#x3002;<br>
parents() &#x65B9;&#x6CD5;&#x8FD4;&#x56DE;&#x88AB;&#x9009;&#x5143;&#x7D20;&#x7684;&#x6240;&#x6709;&#x7956;&#x5148;&#x5143;&#x7D20;&#xFF0C;&#x5B83;&#x4E00;&#x8DEF;&#x5411;&#x4E0A;&#x76F4;&#x5230;&#x6587;&#x6863;&#x7684;&#x6839;&#x5143;&#x7D20; (<html>)&#x3002;<br>
children() &#x65B9;&#x6CD5;&#x8FD4;&#x56DE;&#x88AB;&#x9009;&#x5143;&#x7D20;&#x7684;&#x6240;&#x6709;&#x76F4;&#x63A5;&#x5B50;&#x5143;&#x7D20;&#x3002;<br>
find() &#x65B9;&#x6CD5;&#x8FD4;&#x56DE;&#x88AB;&#x9009;&#x5143;&#x7D20;&#x7684;&#x540E;&#x4EE3;&#x5143;&#x7D20;&#xFF0C;&#x4E00;&#x8DEF;&#x5411;&#x4E0B;&#x76F4;&#x5230;&#x6700;&#x540E;&#x4E00;&#x4E2A;&#x540E;&#x4EE3;&#x3002;<br>
<code>$(document).ready(function(){ $(&quot;div&quot;).find(&quot;span&quot;); });</code><br>
siblings() &#x65B9;&#x6CD5;&#x8FD4;&#x56DE;&#x88AB;&#x9009;&#x5143;&#x7D20;&#x7684;&#x6240;&#x6709;&#x540C;&#x80DE;&#x5143;&#x7D20;&#x3002;<br>
<code>$(document).ready(function(){ $(&quot;h2&quot;).siblings(&quot;p&quot;); });</code><br>
next() &#x65B9;&#x6CD5;&#x8FD4;&#x56DE;&#x88AB;&#x9009;&#x5143;&#x7D20;&#x7684;&#x4E0B;&#x4E00;&#x4E2A;&#x540C;&#x80DE;&#x5143;&#x7D20;&#x3002;<br>
nextAll() &#x65B9;&#x6CD5;&#x8FD4;&#x56DE;&#x88AB;&#x9009;&#x5143;&#x7D20;&#x7684;&#x6240;&#x6709;&#x8DDF;&#x968F;&#x7684;&#x540C;&#x80DE;&#x5143;&#x7D20;&#x3002;<br>
nextUntil() &#x65B9;&#x6CD5;&#x8FD4;&#x56DE;&#x4ECB;&#x4E8E;&#x4E24;&#x4E2A;&#x7ED9;&#x5B9A;&#x53C2;&#x6570;&#x4E4B;&#x95F4;&#x7684;&#x6240;&#x6709;&#x8DDF;&#x968F;&#x7684;&#x540C;&#x80DE;&#x5143;&#x7D20;&#x3002;<br>
first() &#x65B9;&#x6CD5;&#x8FD4;&#x56DE;&#x88AB;&#x9009;&#x5143;&#x7D20;&#x7684;&#x9996;&#x4E2A;&#x5143;&#x7D20;&#x3002;<br>
<code>$(document).ready(function(){ $(&quot;div p&quot;).first(); });&lt;br/&gt;</code><br>
last() &#x65B9;&#x6CD5;&#x8FD4;&#x56DE;&#x88AB;&#x9009;&#x5143;&#x7D20;&#x7684;&#x6700;&#x540E;&#x4E00;&#x4E2A;&#x5143;&#x7D20;&#x3002;<br>
<code>$(document).ready(function(){ $(&quot;div p&quot;).last(); });</code><br>
eq() &#x65B9;&#x6CD5;&#x8FD4;&#x56DE;&#x88AB;&#x9009;&#x5143;&#x7D20;&#x4E2D;&#x5E26;&#x6709;&#x6307;&#x5B9A;&#x7D22;&#x5F15;&#x53F7;&#x7684;&#x5143;&#x7D20;&#x3002;<br>
<code>$(document).ready(function(){ $(&quot;p&quot;).eq(1); });</code><br>
filter() &#x65B9;&#x6CD5;&#x5141;&#x8BB8;&#x60A8;&#x89C4;&#x5B9A;&#x4E00;&#x4E2A;&#x6807;&#x51C6;&#x3002;&#x4E0D;&#x5339;&#x914D;&#x8FD9;&#x4E2A;&#x6807;&#x51C6;&#x7684;&#x5143;&#x7D20;&#x4F1A;&#x88AB;&#x4ECE;&#x96C6;&#x5408;&#x4E2D;&#x5220;&#x9664;&#xFF0C;&#x5339;&#x914D;&#x7684;&#x5143;&#x7D20;&#x4F1A;&#x88AB;&#x8FD4;&#x56DE;&#x3002;<br>
<code>$(document).ready(function(){ $(&quot;p&quot;).filter(&quot;.url&quot;); });</code><br>
not() &#x65B9;&#x6CD5;&#x8FD4;&#x56DE;&#x4E0D;&#x5339;&#x914D;&#x6807;&#x51C6;&#x7684;&#x6240;&#x6709;&#x5143;&#x7D20;&#x3002;<br>
<code>$(document).ready(function(){ $(&quot;p&quot;).not(&quot;.url&quot;); });</code><br></html></li>
</ul>

                    
                    </section>
                
                
                </div>
            </div>
        </div>

        
        <a href="../../md/javascript/前端框架汇总.html" class="navigation navigation-prev " aria-label="Previous page: 前端框架汇总"><i class="fa fa-angle-left"></i></a>
        
        
        <a href="../../md/book/book.html" class="navigation navigation-next " aria-label="Next page: 弹性盒子"><i class="fa fa-angle-right"></i></a>
        
    </div>
</div>

        
<script src="../../gitbook/app.js"></script>

    
    <script src="../../gitbook/plugins/gitbook-plugin-toggle-chapters/toggle.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-search/lunr.min.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-search/search.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-sharing/buttons.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-fontsettings/buttons.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-livereload/plugin.js"></script>
    

<script>
require(["gitbook"], function(gitbook) {
    var config = {"toggle-chapters":{},"highlight":{},"search":{"maxIndexSize":1000000},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"livereload":{}};
    gitbook.start(config);
});
</script>

        <!-- body:end -->
    </body>
    <!-- End of book 个人笔记 -->
</html>
